package com.wind.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 测试分类表
 * </p>
 *
 * @author xiao
 * @since 2021-05-19
 */
@Data
@Accessors(chain = true)
@TableName("test_classify")
public class TestClassify implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 名称
     */
    @TableField("classify_name")
    private String classifyName;
    /**
     * 维度
     */
    @TableField("dimensionalitys_id")
    private String dimensionalitysId;
    /**
     * 父级id
     */
    @TableField("parent_id")
    private Long parentId;
    /**
     * 级别
     */
    private Integer level;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 状态
     */
    @TableField("is_active")
    private Integer isActive;


    /**
     * 分类维度列表
     */
    @TableField(exist = false)
    private List<Dimensionality> dimList;

}
